package com.woniu.ly.facade;

import com.woniu.ly.model.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("hotel")
@FeignClient(value = "hotel",contextId = "HotelFeignClient")
public interface HotelFeignClient {
    /*
     * 酒店账号(新增酒店)
     * */
    @PostMapping("addHotel")
    public Result addHotel(String hotelName
            , String hotelTel
            , String hotelAddress
            , double hotelLongitude
            , double hotelLatitude);
    /*
     * 酒店账号(修改酒店)
     * */
    @PutMapping("changeHotel")
    public Result changeHotel(int hotelId
            , String hotelName
            , String hotelTel
            , String hotelAddress
            , double hotelLongitude
            , double hotelLatitude);
    /*
     * 酒店账号(根据酒店Id查找)
     */
    @GetMapping("getHotel")
    public Result getHotel(int hotelId);
}
